package com.ow.dva.module.account.service.impl;

import com.ow.dva.module.account.entity.AccountPark;
import com.ow.dva.module.account.mapper.AccountParkMapper;
import com.ow.dva.module.account.service.AccountParkService;
import com.ow.dva.module.base.service.impl.DvaServiceImpl;
import org.springframework.stereotype.Service;
import com.ow.dva.module.base.entity.param.DvaPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据观测用， 停车场用户关联表 服务实现类
 * </p>
 *
 * @author zsj
 * @since 2020-05-11
 * @version V1.0
 */
@Service
public class AccountParkServiceImpl extends DvaServiceImpl<AccountParkMapper, AccountPark> implements AccountParkService {

    @Override
    public DvaPage<AccountPark> page(DvaPage<AccountPark> page, Map<String, Object> param) {

        return baseMapper.page(page,param);
    }

    @Override
    public List<AccountPark> getByAccountId(String accountId) {
        return baseMapper.getByAccountId(accountId);
    }

    @Override
    public boolean untyingPark(AccountPark accountPark) {
        int i = baseMapper.untyingPark(accountPark);
        if(i > 0){
            return true;
        }else{
            return false;
        }
    }
}
